#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include<QPushButton>

class MyPushButton : public QPushButton
{
    Q_OBJECT
public:
    //normalImg 代表正常显示的图片
        //pressImg  代表按下后显示的图片，默认为空
        MyPushButton(QString normalImg,QString pressImg = "");

        QString normalPath;  //默认显示图片路径
        QString pressPath; //按下后显示图片路径
        //向下跳跃
        void zoom1();
        //向上跳跃
        void zoom2();
        //鼠标按下事件
        void mousePressEvent(QMouseEvent *e);
        //鼠标释放事件
        void mouseReleaseEvent(QMouseEvent *e);
signals:

public slots:
};

#endif // MYPUSHBUTTON_H
